All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.sound.SoundComponentData

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.sound.SoundComponentData

public final class SoundComponentData
extends QTByteObject
implements PrimitivesLib

Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o SoundComponentData()

Method Index

 o getBuffer()
The buffer that contains the sound data.
 o getFlags()
A set of bit flags whose meanings are specific to a particular sound component.
 o getFormat()
The format of the data a sound component is producing.
 o getNumChannels()
The number of channels of sound in the output data stream.
 o getSampleCount()
The number of samples in the buffer pointed to by the buffer field.
 o getSampleRate()
The sample rate for the audio data.
 o getSampleSize()
The size, in bits, of each sample in the output data stream.
 o setBuffer(QTPointer)
The buffer that contains the sound data.
 o setFlags(int)
A set of bit flags whose meanings are specific to a particular sound component.
 o setFormat(int)
The format of the data a sound component is producing.
 o setNumChannels(int)
The number of channels of sound in the output data stream.
 o setSampleCount(int)
The number of samples in the buffer pointed to by the buffer field.
 o setSampleRate(float)
The sample rate for the audio data.
 o setSampleSize(int)
The size, in bits, of each sample in the output data stream.
 o toString()
Returns a String representation of this object.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o SoundComponentData
 public SoundComponentData()

Methods

 o getFlags
 public final int getFlags()
A set of bit flags whose meanings are specific to a particular sound component.

 o setFlags
 public final void setFlags(int flags)
A set of bit flags whose meanings are specific to a particular sound component.

 o getFormat
 public final int getFormat()
The format of the data a sound component is producing.

 o setFormat
 public final void setFormat(int format)
The format of the data a sound component is producing.

 o getNumChannels
 public final int getNumChannels()
The number of channels of sound in the output data stream.

 o setNumChannels
 public final void setNumChannels(int chans)
The number of channels of sound in the output data stream.

 o getSampleSize
 public final int getSampleSize()
The size, in bits, of each sample in the output data stream.

 o setSampleSize
 public final void setSampleSize(int sampleSize)
The size, in bits, of each sample in the output data stream.

 o getSampleRate
 public final float getSampleRate()
The sample rate for the audio data.

 o setSampleRate
 public final void setSampleRate(float sampleRate)
The sample rate for the audio data.

 o getSampleCount
 public final int getSampleCount()
The number of samples in the buffer pointed to by the buffer field. For compressed sounds, this field indicates the number of compressed samples in the sound, not the size of the buffer.

 o setSampleCount
 public final void setSampleCount(int sampleCount)
The number of samples in the buffer pointed to by the buffer field. For compressed sounds, this field indicates the number of compressed samples in the sound, not the size of the buffer.

 o getBuffer
 public final QTPointer getBuffer()
The buffer that contains the sound data.

 o setBuffer
 public final void setBuffer(QTPointer buffer) throws SoundException
The buffer that contains the sound data. If the size of the incoming buffer is less than (getSampleSize() / 8 * getSampleCount()) a paramErr exception is thrown as the buffer is not large enough to hold the specified samples. This also means that the sample size and sample count fields must be set before the buffer is set.

 o toString
 public String toString()
Returns a String representation of this object.

Returns:
a String
Overrides:
toString in class QTByteObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index